<template>
    <div class="LBC_box">
        <!-- 轮播图 -->
        <mt-swipe :auto="4000">
        <mt-swipe-item v-for="item in imglist" :key='item.id'>
            <img v-if="item.img" :src="item.img" alt="" class="img">
            <img v-else :src="item.src" alt="" class="src">
        </mt-swipe-item>  
        </mt-swipe>
    </div>
</template>
<script>
export default {
    data(){
        return {

        }
    },
    props:['imglist']
}
</script>
<style lang="scss" scoped>
    .LBC_box {
    height:30vh;
    background-color: #fff;
    text-align: center;
    .img {
      width: 100%;
      height: 100%;
    }
    .src {
        height: 100%;
    }
  }
</style>
